package com.qf.mapper;/*
 *徐韬
 *2021/10/26
 *19:39
 */

import com.qf.pojo.TBlackList;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TBlacklistMapper {
    @Insert("insert into t_black_list values (0,#{mobile},#{owntype},#{creater})")
    int addblack(TBlackList tBlackList);
    @Select("select * from t_black_list ")
    List<TBlackList> selectAll();
    int updateBlack(TBlackList blackList);
    @Select("select * from t_black_list where id = ${id} ")
    TBlackList selectById(Long id);
    int deleteById(@Param("ids") List<Integer> ids);
    int deleteByIdandcreater(@Param("ids") List<Integer> ids,@Param("creater") Long creater);
    List<TBlackList> showAllBypramas(TBlackList tBlackList);

}
